MODULES = .//common .//service .//view
vpath = %.h ./include

all:$(MODULES) a.out

$(MODULES):ECHO
	make -C $@

ECHO:
	@echo $(MODULES)

a.out: main.c
	gcc $< -o ./$@ -I ./include -L./release -lsrv -lview -lcommon -lsrv -lpthread


.PHONY:clean all log

#删除库文件
clean:
	rm -rf ./release/*.o ./release/*.a ./release/*.so

#删除日志文件
log:
	rm -rf log.log
